Skip to content

fix: include id in vehicle creation response#80

Merged
lsh1215 merged 1 commit intodevelopfrom
fix/vehicle-create-response-missing-id
Feb 12, 2026
Merged

fix: include id in vehicle creation response#80
lsh1215 merged 1 commit intodevelopfrom
fix/vehicle-create-response-missing-id

Conversation

@lsh1215
Copy link
Member

@lsh1215 lsh1215 commented Feb 12, 2026

Summary

  • VehicleCreateSerializerfieldsid가 누락되어 POST /api/v1/vehicles/ 응답에 생성된 리소스의 ID가 포함되지 않던 버그 수정
  • 이로 인해 k6 부하테스트에서 FCM 토큰 업데이트 PATCH 요청이 /api/v1/vehicles/undefined/fcm-token/으로 전송되어 0% 성공률 발생

Changes

  • apps/vehicles/serializers.py: VehicleCreateSerializer.Meta.fields"id" 추가, read_only_fields = ["id"] 설정

Test plan

  • POST /api/v1/vehicles/ 응답에 id 필드가 포함되는지 확인
  • PATCH /api/v1/vehicles/{id}/fcm-token/ 정상 동작 확인
  • k6 부하테스트 admin_ops 시나리오에서 FCM 토큰 업데이트 성공 확인

VehicleCreateSerializer was missing the id field, causing POST
/api/v1/vehicles/ to return a response without the created resource's
ID. This broke any client that needs the ID after creation (e.g., FCM
token update via PATCH /api/v1/vehicles/{id}/fcm-token/).
@lsh1215 lsh1215 merged commit 4839276 into develop Feb 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant